package cn.sycoder.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 *
 * </p>
 *
 * @author 杨润发
 * @since 2024-10-15
 */
@ApiModel(value = "User对象", description = "")
@Data
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "user_id", type = IdType.AUTO)
    private Long userId;

    @ApiModelProperty("公司部门id	")
    private Long deptId;

    @ApiModelProperty("公司名称")
    private String deptName;

    @ApiModelProperty("登录用户名")
    private String userName;

    // 自动填充
    @TableField(value = "user_password",fill = FieldFill.INSERT)
    @ApiModelProperty("登录密码")
    private String userPassword;

    @ApiModelProperty("姓名")
    private String userRealName;

    @ApiModelProperty("性别")
    private String userSex;

    @ApiModelProperty("年龄")
    private Integer age;

    @ApiModelProperty("电话")
    private String userMobile;

    @ApiModelProperty("邮箱")
    private String userEmail;

    @ApiModelProperty("角色id")
    private Long roleId;

    @ApiModelProperty("角色名称")
    private String roleName;

    // 自动填充
    @TableField(value = "add_time",fill = FieldFill.INSERT)
    @ApiModelProperty("创建时间")
    private Date addTime;

    // 自动填充
    @TableField(value = "edit_time",fill = FieldFill.UPDATE)
    @ApiModelProperty("更新时间")
    private Date editTime;

    @ApiModelProperty("状态")
    private String isLock;


}
